package com.dc.designPattern._0_设计原则._7_crp.step3;

/**
 * Description: 合成复用原则_组合方式
 * @author: gdc
 * @date: 2021/7/23
 * @version 1.0
 */
public class B {

    private A a = new A();

    public void method1(){
        a.method1();
    }

    public void method2(){
        a.method2();
    }

    public void method3(){
        System.out.println("method3..............");
    }
}
